﻿// Copyright 2013 Ronald Schlenker and Andre Krämer.
// 
// This file is part of GraphIT.
// 
// GraphIT is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
// 
// GraphIT is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with GraphIT.  If not, see <http://www.gnu.org/licenses/>.
using System;

namespace TechNewLogic.GraphIT.Hv
{
	/// <summary>
	/// Provides a time interval which is used to delay the redraw of a curve.
	/// </summary>
	/// <remarks>
	/// The <see cref="RedrawTime"/> is used by the <see cref="TimeDoubleCurve"/>. 
	/// When the curve needs to be redrawn (e.g. due to panning, zooming, changes in axis bounds, etc.),
	/// the redraw is not carried out immediately. Instead, the <see cref="RedrawTime"/> is used to delay
	/// the redraw process.
	/// By using the <see cref="RedrawTime"/>, it is possible to control the overall performance.
	/// </remarks>
	internal sealed class RedrawTime
	{
		public RedrawTime(TimeSpan timeSpan)
		{
			TimeSpan = timeSpan;
		}

		public TimeSpan TimeSpan { get; private set; }
	}
}